﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cuckoo.TaskSchedule;

namespace Cuckoo.TaskSchedule.Demo
{
	public class Task : ITask
	{
		public string ScheduleExpress { get; set; }

		public string TaskName { get; set; }

		public void Work()
		{
			Console.WriteLine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "  " + TaskName + ":" + Timer.TotalSecond);
		}

		public ITimer Timer { get; set; }
	}
}
